<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>手表控制列表</title>
    <%@ include file="/common/include-core.jsp" %>
    <script type="text/javascript" src="/static/js/watchSet/watchSet.js"></script>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 手表控制 <span class="c-gray en">&gt;</span> 手表控制 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="text-c">
    <form action="/watchSet/watchSetList.html" method="post" id="searchForm">
        <input type="hidden" id="count" value="${pageInfo.total }" />
        <input type="hidden" id="page" name="page" value="${pageInfo.pageNum }" />
        <input type="hidden" id="pageSize" name="pageSize" value="${pageInfo.pageSize }" />
        <input type="text" name="devicId"  value="${bean.devicId }" placeholder=" 输入设备号" style="width:250px" class="input-text">
        <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
</div>
<div class="page-container">
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr class="text-c">
            <th width="15">序号</th>
            <th width="30">设备号</th>
            <th width="10">iccId</th>
            <th width="40">状态</th>
            <th width="15">创建时间</th>
            <th width="15">操作</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${pageInfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                    <td>${index.index+1}</td>
                    <td>${item.devicId}</td>
                    <td>${item.iccId}</td>
                    <td>${item.status==1?"<span class=\"label label-success radius\">未锁</span>":item.status==0?"<span class=\"label label-defaunt radius\">锁定</span>":item.status}</td>
                    <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm" /></td>
                    <td class="f-14">
                        <a title="${item.status==1?"锁机":item.status==0?"解锁":item.status}" href="javascript:;" onclick="modifiyStaus(${item.tid},${item.status});" style="text-decoration:none">
                            <i class="Hui-iconfont">${item.status==1?"&#xe60e;":item.status==0?"&#xe605;":""}</i></a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
    <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
</div>

</body>
</html>
<%@ include file="/common/include-footer.jsp" %>

